package com.mcvcm.bpaint.views
{
	import flash.display.Shape;
	import com.mcvcm.bpaint.vo.CanvasVO;

	public class CanvasMask extends Shape
	{
		public function CanvasMask (canvasVO:CanvasVO):void
		{
			setMaskSize(canvasVO);
		}
		
		private function draw (w:uint, h:uint):void
		{
			with (graphics)
			{
				clear();
				beginFill(0xffffff);
				drawRect(0, 0, w, h);
				endFill();				
			}
			trace ("mask drawn");
		}
		
		public function setMaskSize (canvasVO:CanvasVO):void
		{
			draw (canvasVO.width, canvasVO.height);
		}
	}
}